/*
 * ComboBoxWizard5.java
 *
 * Created on May 26, 2006, 4:38 AM
 */

import java.awt.Color;
import java.awt.Component;
import java.awt.PopupMenu;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Vector;
import javax.swing.JOptionPane;
import javax.swing.table.TableColumn;

/**
 *
 * @author  yaco
 */
public class ComboBoxWizard5 extends javax.swing.JFrame {
       boolean flag;
       int flagSort=1;
       String firstColumn;
       String secondColumn;
       String thirdColumn;
       String fourthColumn;
       String []columns$1=new String[1];
       String []columns$2=new String[2];
       String []columns$3=new String[3];
       String []columns$4=new String[4];
       Object [][] tmp1;
       Object [][] tmp2;
       Object [][] tmp3;
       Object [][] tmp4;
       TableColumn[] tableColumns=new TableColumn[3];
    /** Creates new form ComboBoxWizard6 */
    public ComboBoxWizard5() {
        initComponents();
        this.setSize(550,350);
        this.setLocation(250,200);     
   
      
    }
    

    
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        jSeparator2 = new javax.swing.JSeparator();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jButton9 = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jComboBox2 = new javax.swing.JComboBox();
        jComboBox4 = new javax.swing.JComboBox();
        jComboBox5 = new javax.swing.JComboBox();
        jComboBox3 = new javax.swing.JComboBox();
        jButton2 = new javax.swing.JButton();

        getContentPane().setLayout(null);

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Combo Box Wizard");
        setIconImage(java.awt.Toolkit.getDefaultToolkit().getImage(this.getClass().getResource("mysql.JPEG")));
        setResizable(false);
        jLabel2.setText("What sort order do you want for your list?");
        getContentPane().add(jLabel2);
        jLabel2.setBounds(10, 10, 400, 14);

        jLabel3.setText("You can sort records by up to 4 fields,in either ascending or descending order.");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(10, 30, 470, 20);

        jButton1.setText("Ascending");
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton1MouseClicked(evt);
            }
        });

        getContentPane().add(jButton1);
        jButton1.setBounds(240, 80, 110, 23);

        jButton5.setText("Cancel");
        jButton5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton5MouseClicked(evt);
            }
        });

        getContentPane().add(jButton5);
        jButton5.setBounds(130, 280, 80, 23);

        jButton6.setText("<  Back");
        jButton6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton6MouseClicked(evt);
            }
        });

        getContentPane().add(jButton6);
        jButton6.setBounds(260, 280, 90, 23);

        jButton7.setText("Next  >");
        jButton7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton7MouseClicked(evt);
            }
        });

        getContentPane().add(jButton7);
        jButton7.setBounds(350, 280, 90, 23);

        jButton8.setText("Finish");
        jButton8.setEnabled(false);
        getContentPane().add(jButton8);
        jButton8.setBounds(440, 280, 90, 23);

        getContentPane().add(jSeparator2);
        jSeparator2.setBounds(10, 260, 520, 20);

        jButton3.setText("Ascending");
        jButton3.setEnabled(false);
        jButton3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton3MouseClicked(evt);
            }
        });

        getContentPane().add(jButton3);
        jButton3.setBounds(240, 120, 110, 23);

        jButton4.setText("Ascending");
        jButton4.setEnabled(false);
        jButton4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton4MouseClicked(evt);
            }
        });

        getContentPane().add(jButton4);
        jButton4.setBounds(240, 160, 110, 23);

        jButton9.setText("Ascending");
        jButton9.setEnabled(false);
        jButton9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton9MouseClicked(evt);
            }
        });

        getContentPane().add(jButton9);
        jButton9.setBounds(240, 200, 110, 23);

        jLabel1.setText("1");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(10, 90, 20, 14);

        jLabel4.setText("2");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(10, 120, 20, 14);

        jLabel5.setText("3");
        getContentPane().add(jLabel5);
        jLabel5.setBounds(10, 170, 20, 14);

        jLabel6.setText("4");
        getContentPane().add(jLabel6);
        jLabel6.setBounds(10, 210, 20, 14);

        jComboBox2.setEnabled(false);
        jComboBox2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jComboBox2MouseClicked(evt);
            }
        });
        jComboBox2.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {
            public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
            }
            public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
                jComboBox2PopupMenuWillBecomeInvisible(evt);
            }
            public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
            }
        });

        getContentPane().add(jComboBox2);
        jComboBox2.setBounds(40, 120, 180, 22);

        jComboBox4.setEnabled(false);
        jComboBox4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jComboBox4MouseClicked(evt);
            }
        });
        jComboBox4.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {
            public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
            }
            public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
                jComboBox4PopupMenuWillBecomeInvisible(evt);
            }
            public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
            }
        });

        getContentPane().add(jComboBox4);
        jComboBox4.setBounds(40, 160, 180, 22);

        jComboBox5.setEnabled(false);
        jComboBox5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jComboBox5MouseClicked(evt);
            }
        });

        getContentPane().add(jComboBox5);
        jComboBox5.setBounds(40, 200, 180, 22);

        jComboBox3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jComboBox3MouseClicked(evt);
            }
        });
        jComboBox3.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {
            public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
                jComboBox3PopupMenuCanceled(evt);
            }
            public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
                jComboBox3PopupMenuWillBecomeInvisible(evt);
            }
            public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
            }
        });

        getContentPane().add(jComboBox3);
        jComboBox3.setBounds(40, 80, 180, 22);

        jButton2.setText("Skip sort step");
        jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton2MouseClicked(evt);
            }
        });

        getContentPane().add(jButton2);
        jButton2.setBounds(400, 140, 120, 23);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jComboBox5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jComboBox5MouseClicked
// TODO add your handling code here:
    }//GEN-LAST:event_jComboBox5MouseClicked

    private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MouseClicked
// TODO add your handling code here:   
            ComboBoxWizard1.comboBoxWizard6.jTable1.setModel(new javax.swing.table.DefaultTableModel(
                                                         new Object[][]{null},new String[]{"Title 1"}
                                                        ));
            this.dispose();
            ComboBoxWizard1.comboBoxWizard6.setVisible(true);        
    }//GEN-LAST:event_jButton2MouseClicked

    private void jComboBox4PopupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {//GEN-FIRST:event_jComboBox4PopupMenuWillBecomeInvisible
// TODO add your handling code here:
            if(ComboBoxWizard1.comboBoxWizard4.list2Data.size()>3){
               flagSort=4;
               jComboBox5.setEnabled(true);
               jButton9.setEnabled(true);
               for(int i=0;i<jComboBox4.getItemCount();i++){
                   jComboBox5.addItem(jComboBox4.getItemAt(i));
               }
               for(int i=0;i<jComboBox5.getItemCount();i++){
                   if (jComboBox5.getItemAt(i).equals(jComboBox4.getSelectedItem())){
                       jComboBox5.removeItemAt(i);
                   }
                   else{ 
                        if (jComboBox5.getItemAt(i).equals(jComboBox2.getSelectedItem())){
                            jComboBox5.removeItemAt(i);
                        }
                       else{
                            if (jComboBox5.getItemAt(i).equals(jComboBox3.getSelectedItem())){
                                jComboBox5.removeItemAt(i);
                            }
                       }
                   }
                }
            }
    }//GEN-LAST:event_jComboBox4PopupMenuWillBecomeInvisible

    private void jComboBox2PopupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {//GEN-FIRST:event_jComboBox2PopupMenuWillBecomeInvisible
// TODO add your handling code here:
             if(ComboBoxWizard1.comboBoxWizard4.list2Data.size()>2){
                flagSort=3;
                jComboBox4.setEnabled(true);
                jButton4.setEnabled(true);
                for(int i=0;i<jComboBox2.getItemCount();i++){
                    jComboBox4.addItem(jComboBox2.getItemAt(i));
                }
                for(int i=0;i<jComboBox4.getItemCount();i++){
                    if (jComboBox4.getItemAt(i).equals(jComboBox2.getSelectedItem())){
                        jComboBox4.removeItemAt(i);
                    }
                    else{
                         if (jComboBox4.getItemAt(i).equals(jComboBox3.getSelectedItem())){                      
                             jComboBox4.removeItemAt(i);
                         }
                    }
                }  
             }
    }//GEN-LAST:event_jComboBox2PopupMenuWillBecomeInvisible

    private void jComboBox3PopupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {//GEN-FIRST:event_jComboBox3PopupMenuWillBecomeInvisible
// TODO add your handling code here:
       
        if(ComboBoxWizard1.comboBoxWizard4.list2Data.size()>1){
           flagSort=2;
           jComboBox2.setEnabled(true);
           jButton3.setEnabled(true);
           for(int i=0;i<jComboBox3.getItemCount();i++)
                 {
                       jComboBox2.addItem(jComboBox3.getItemAt(i));
                }
        
        for(int i=0;i<jComboBox2.getItemCount();i++)
        {
                if (jComboBox2.getItemAt(i).equals(jComboBox3.getSelectedItem()))
                {
                    jComboBox2.removeItemAt(i);
                }
        }
        }
    }//GEN-LAST:event_jComboBox3PopupMenuWillBecomeInvisible

    private void jComboBox3PopupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {//GEN-FIRST:event_jComboBox3PopupMenuCanceled
// TODO add your handling code here:
    }//GEN-LAST:event_jComboBox3PopupMenuCanceled

    private void jComboBox4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jComboBox4MouseClicked
// TODO add your handling code here:
    jComboBox5.setEnabled(true);
    jButton9.setEnabled(true);
    }//GEN-LAST:event_jComboBox4MouseClicked

    private void jComboBox2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jComboBox2MouseClicked
// TODO add your handling code here:
         jComboBox3.setEnabled(false);
         jComboBox4.setEnabled(true);
         jButton4.setEnabled(true);
    }//GEN-LAST:event_jComboBox2MouseClicked

    private void jComboBox3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jComboBox3MouseClicked
// TODO add your handling code here:
  
    }//GEN-LAST:event_jComboBox3MouseClicked

    private void jButton9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton9MouseClicked
// TODO add your handling code here:
        if(jButton9.getText()=="Ascending")
   {
       jButton9.setText("Descending");
   }
   else
   {
       jButton9.setText("Ascending");
   }
    }//GEN-LAST:event_jButton9MouseClicked

    private void jButton4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton4MouseClicked
// TODO add your handling code here:
        if(jButton4.getText()=="Ascending")
   {
       jButton4.setText("Descending");
   }
   else
   {
       jButton4.setText("Ascending");
   }
    }//GEN-LAST:event_jButton4MouseClicked

    private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton3MouseClicked
// TODO add your handling code here:
        if(jButton3.getText()=="Ascending")
   {
       jButton3.setText("Descending");
   }
   else
   {
       jButton3.setText("Ascending");
   }
    }//GEN-LAST:event_jButton3MouseClicked

    private void jButton6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton6MouseClicked
// TODO add your handling code here:
        jComboBox3.removeAllItems();
         jComboBox2.removeAllItems();
          jComboBox4.removeAllItems();
           jComboBox5.removeAllItems();
        flag=true;
        this.dispose();
        ComboBoxWizard1.comboBoxWizard4.setVisible(true);
        
    }//GEN-LAST:event_jButton6MouseClicked

    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked
// TODO add your handling code here:
   if(jButton1.getText()=="Ascending")
   {
       jButton1.setText("Descending");
   }
   else
   {
       jButton1.setText("Ascending");
   }
        
    }//GEN-LAST:event_jButton1MouseClicked

    private void jButton7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton7MouseClicked
  
       
        for(int i=0;i<3;i++){
            tableColumns[i]=new TableColumn();
        }
        int rowsNumber=MainWindow.dbCon.getRowCount(ComboBoxWizard1.comboBoxWizard3.table);
        
        try{
            firstColumn=jComboBox3.getSelectedItem().toString();
            secondColumn=jComboBox2.getSelectedItem().toString();
            thirdColumn=jComboBox4.getSelectedItem().toString();
            fourthColumn=jComboBox5.getSelectedItem().toString();
           }catch(NullPointerException e){}
        
        switch (flagSort){          
            
                case 1:      tmp1=new Object[rowsNumber][1];
                             Vector v11=MainWindow.dbCon.getColumn(ComboBoxWizard1.comboBoxWizard3.table,firstColumn);                   
                             try{
                             Collections.sort(v11);
                             if (jButton1.getText()=="Descending"){
                                 Collections.sort(v11,Collections.reverseOrder());
                             }
                               }catch(NullPointerException e){JOptionPane.showMessageDialog(null,firstColumn+" column cannot be sorted.records are not comparable","Error", JOptionPane.ERROR_MESSAGE);}
                             for(int i=0;i<v11.size();i++) {
                                 tmp1[i][0]=v11.elementAt(i);                   
                             }
                             columns$1[0]=firstColumn;          
                             ComboBoxWizard1.comboBoxWizard6.jTable1.setModel(new javax.swing.table.DefaultTableModel(
                                                                              tmp1 , columns$1 ));
                             break;       
                             
                case 2:      ComboBoxWizard1.comboBoxWizard6.jTable1.addColumn(tableColumns[0]);
                             tmp2=new Object[rowsNumber][2];              
                             Vector v21=MainWindow.dbCon.getColumn(ComboBoxWizard1.comboBoxWizard3.table,firstColumn);
                             Vector v22=MainWindow.dbCon.getColumn(ComboBoxWizard1.comboBoxWizard3.table,secondColumn);          
                             try{
                             Collections.sort(v21);
                             if (jButton1.getText()=="Descending"){    
                                 Collections.sort(v21,Collections.reverseOrder());
                             }
                             }catch(NullPointerException e){JOptionPane.showMessageDialog(null,firstColumn+" column cannot be sorted.records are not comparable","Error", JOptionPane.ERROR_MESSAGE);}
                             
                             try{
                             Collections.sort(v22);                             
                             if (jButton3.getText()=="Descending"){         
                                 Collections.sort(v22,Collections.reverseOrder());
                             }
                             }catch(NullPointerException e){JOptionPane.showMessageDialog(null,secondColumn+" column cannot be sorted.records are not comparable","Error", JOptionPane.ERROR_MESSAGE);}
                             for(int i=0;i<v21.size();i++){
                                 tmp2[i][0]=v21.elementAt(i);
                             }
                             for(int i=0;i<v22.size();i++){
                                 tmp2[i][1]=v22.elementAt(i);
                             }
                             columns$2[0]=firstColumn;       
                             columns$2[1]=secondColumn;          
                             ComboBoxWizard1.comboBoxWizard6.jTable1.setModel(new javax.swing.table.DefaultTableModel(
                                                                              tmp2 , columns$2 ));
                             break;
                   
                case 3:     ComboBoxWizard1.comboBoxWizard6.jTable1.addColumn(tableColumns[0]);
                            ComboBoxWizard1.comboBoxWizard6.jTable1.addColumn(tableColumns[1]);
                            tmp3=new Object[rowsNumber][3];                         
                            Vector v31=MainWindow.dbCon.getColumn(ComboBoxWizard1.comboBoxWizard3.table,firstColumn);
                            Vector v32=MainWindow.dbCon.getColumn(ComboBoxWizard1.comboBoxWizard3.table,secondColumn);
                            Vector v33=MainWindow.dbCon.getColumn(ComboBoxWizard1.comboBoxWizard3.table,thirdColumn);                         
                            try{
                            Collections.sort(v31);
                              if (jButton1.getText()=="Descending"){
                                Collections.sort(v31,Collections.reverseOrder());
                            }
                            }catch(NullPointerException e){JOptionPane.showMessageDialog(null,firstColumn+" column cannot be sorted.records are not comparable","Error", JOptionPane.ERROR_MESSAGE);}
                            try{
                            Collections.sort(v32);
                              if (jButton3.getText()=="Descending"){                   
                                Collections.sort(v32,Collections.reverseOrder());
                            }
                            }catch(NullPointerException e){JOptionPane.showMessageDialog(null,secondColumn+" column cannot be sorted.records are not comparable","Error", JOptionPane.ERROR_MESSAGE);}
                            try{
                            Collections.sort(v33);                                                    
                            if (jButton4.getText()=="Descending"){   
                                Collections.sort(v33,Collections.reverseOrder());
                            }
                            }catch(NullPointerException e){JOptionPane.showMessageDialog(null,thirdColumn+" column cannot be sorted.records are not comparable","Error", JOptionPane.ERROR_MESSAGE);}
                            for(int i=0;i<v31.size();i++){
                                tmp3[i][0]=v31.elementAt(i);
                            }
                            for(int i=0;i<v32.size();i++){
                                tmp3[i][1]=v32.elementAt(i);
                            }                  
                            for(int i=0;i<v33.size();i++){
                                tmp3[i][2]=v33.elementAt(i);
                            }
                            columns$3[0]=firstColumn;          
                            columns$3[1]=secondColumn;          
                            columns$3[2]=thirdColumn;          
                            ComboBoxWizard1.comboBoxWizard6.jTable1.setModel(new javax.swing.table.DefaultTableModel(
                                                                             tmp3 , columns$3 ));
                            break;
                   
                case 4:     ComboBoxWizard1.comboBoxWizard6.jTable1.addColumn(tableColumns[0]);
                            ComboBoxWizard1.comboBoxWizard6.jTable1.addColumn(tableColumns[1]);
                            ComboBoxWizard1.comboBoxWizard6.jTable1.addColumn(tableColumns[2]);
                            tmp4=new Object[rowsNumber][4];                                   
                            Vector v41=MainWindow.dbCon.getColumn(ComboBoxWizard1.comboBoxWizard3.table,firstColumn);
                            Vector v42=MainWindow.dbCon.getColumn(ComboBoxWizard1.comboBoxWizard3.table,secondColumn);
                            Vector v43=MainWindow.dbCon.getColumn(ComboBoxWizard1.comboBoxWizard3.table,thirdColumn);
                            Vector v44=MainWindow.dbCon.getColumn(ComboBoxWizard1.comboBoxWizard3.table,fourthColumn);
                            try{
                            Collections.sort(v41);
                            if (jButton1.getText()=="Descending"){
                            Collections.sort(v41,Collections.reverseOrder());
                            }
                                }catch(NullPointerException e){JOptionPane.showMessageDialog(null,firstColumn+" column cannot be sorted.records are not comparable","Error", JOptionPane.ERROR_MESSAGE);}
                            try{
                            Collections.sort(v42);
                            if (jButton3.getText()=="Descending"){  
                                    Collections.sort(v42,Collections.reverseOrder());
                            }
                                }catch(NullPointerException e){JOptionPane.showMessageDialog(null,secondColumn+" column cannot be sorted.records are not comparable","Error", JOptionPane.ERROR_MESSAGE);}
                            try{
                            Collections.sort(v43);
                            if (jButton4.getText()=="Descending"){            
                                Collections.sort(v43,Collections.reverseOrder());
                            }
                                }catch(NullPointerException e){JOptionPane.showMessageDialog(null,thirdColumn+" column cannot be sorted.records are not comparable","Error", JOptionPane.ERROR_MESSAGE);}
                            try{
                            Collections.sort(v44);                                                                                          
                            if (jButton9.getText()=="Descending"){  
                                Collections.sort(v44,Collections.reverseOrder());
                            }
                                }catch(NullPointerException e){JOptionPane.showMessageDialog(null,fourthColumn+" column cannot be sorted.records are not comparable","Error", JOptionPane.ERROR_MESSAGE);}
                            for(int i=0;i<v41.size();i++){
                                tmp4[i][0]=v41.elementAt(i);
                            }
                            for(int i=0;i<v42.size();i++){
                                tmp4[i][1]=v42.elementAt(i);
                            }                  
                            for(int i=0;i<v43.size();i++){
                                tmp4[i][2]=v43.elementAt(i);
                            }
                            for(int i=0;i<v44.size();i++){
                                tmp4[i][3]=v44.elementAt(i);
                            }
                            columns$4[0]=firstColumn;          
                            columns$4[1]=secondColumn;          
                            columns$4[2]=thirdColumn;          
                            columns$4[3]=fourthColumn;          
                            ComboBoxWizard1.comboBoxWizard6.jTable1.setModel(new javax.swing.table.DefaultTableModel(
                                                                             tmp4 , columns$4 ));
                            break;            
        }
     
     
        this.setVisible(false);
        ComboBoxWizard1.comboBoxWizard6.setVisible(true);  
// TODO add your handling code here:
    }//GEN-LAST:event_jButton7MouseClicked

    private void jButton5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton5MouseClicked
        this.dispose();
// TODO add your handling code here:
    }//GEN-LAST:event_jButton5MouseClicked
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
               ComboBoxWizard1.comboBoxWizard5.setVisible(true);
            }
        });
    }

    void init() {
        
              for(int i=0;i<ComboBoxWizard4.list2Data.size();i++)
                 {
                       jComboBox3.addItem(ComboBoxWizard4.list2Data.elementAt(i));
                }
             
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JComboBox jComboBox3;
    private javax.swing.JComboBox jComboBox4;
    private javax.swing.JComboBox jComboBox5;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JSeparator jSeparator2;
    // End of variables declaration//GEN-END:variables
    
}
